package com.drawingtimer.admin.service;

import com.drawingtimer.admin.model.entity.TProcessInfo;
import com.drawingtimer.admin.model.vo.TProcessInfoPageVO;
import com.drawingtimer.admin.model.qo.TProcessInfoQO;
import com.hccake.ballcat.common.model.domain.PageParam;
import com.hccake.ballcat.common.model.domain.PageResult;
import com.hccake.extend.mybatis.plus.service.ExtendService;

import java.util.List;

/**
 * 工序信息
 *
 * @author jjh 2025-04-24 16:34:17
 */
public interface TProcessInfoService extends ExtendService<TProcessInfo> {

	/**
	 * 根据QueryObeject查询分页数据
	 * @param pageParam 分页参数
	 * @param qo 查询参数对象
	 * @return PageResult&lt;TProcessInfoPageVO&gt; 分页数据
	 */
	PageResult<TProcessInfoPageVO> queryPage(PageParam pageParam, TProcessInfoQO qo);

	/**
	 * 根据流程卡号查询工序信息
	 * @param flowCardNumber 流程卡号
	 * @return List<TProcessInfoPageVO>
	 */
	PageResult<TProcessInfoPageVO> getDetailsByFlowCardNumber(String flowCardNumber);

	/**
	 * 根据流程卡号、工序序号、工序编码查询工序信息
	 * @param flowCardNumber
	 * @param processSequence
	 * @param processCode
	 * @return
	 */
	boolean existsByKey(String flowCardNumber, Integer processSequence, String processCode);

}